package net.ningbo;

/**
 * @Author 宁铂
 * @Date 2021/7/6 20:29
 * @Version 1.0
 */
public class TestMethod {

    static void Method(ClassDemo c){
        c.f = 47.47f;
    }

    public static void main(String[] args) {
        ClassDemo cl = new ClassDemo();

        cl.f = 27.27f;
        System.out.println("1: cl.f: "+cl.f);

        Method(cl);
        System.out.println("2: cl.f: "+cl.f);
    }
}

class ClassDemo{
    float f;
}